/* HDU1048 The Hardest Problem Ever（简洁版） */

#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <iostream>
#include <stdlib.h>
char start[]= "START";
char end[]= "END";
char endofinput[]= "ENDOFINPUT";
char cipher[] = "VWXYZABCDEFGHIJKLMNOPQRSTU";

int main(void)
{
    char s[1024], *p;

    for(;;) {
        gets(s);

        // 判断开始：START
        if(strcmp(s, start) == 0)
            continue;

        // 判断报文结束：END
        if(strcmp(s, end) == 0)
            continue;

        // 判断结束：ENDOFINPUT
        if(strcmp(s, endofinput) == 0)
            break;

        // 译码
        p = s;
        while(*p) {
            if('A' <= *p && *p <='Z') {
                *p = cipher[*p - 'A'];
            }
            p++;
        }

        // 输出结果
        printf("%s\n", s);
    }

    return 0;
}
